fnFlip = {
	private ["_l","_vUp","_winkel"];
	if (vehicle player == player) then {
		dm_objectID1 = position player nearestObject "LandVehicle";
		if (!alive dm_objectID1 || player distance dm_objectID1 > 8) then {
			false
		} else {
			_vUp = vectorUp dm_objectID1;
			if ((_vUp select 2) < 0) then {
				true
			} else {
				_l=sqrt((_vUp select 0)^2+(_vUp select 1)^2);
				if (_l != 0) then {
					_winkel = (_vUp select 2) atan2 _l;
					(_winkel < 30)
				}
			}
		}
	} else {
		false
	}
};

XfArtyShellTrail = {
	private ["_shpos", "_trails", "_ns", "_sh", "_trail"];
	_shpos = _this select 0;
	_trails = _this select 1;
	_ns = _this select 2;
	if (_trails != "") then {
		_sh = _ns createVehicleLocal [_shpos select 0, _shpos select 1, 150];
		_sh setPosASL _shpos;
		_sh setVelocity [0,0,-150];
		_trail = [_sh] call compile preprocessFile _trails;
		waitUntil {isNull _sh};
		sleep 1;
		deleteVehicle _trail;
	};
};

XGreyText = {"<t color='#f0bfbfbf'>" + _this + "</t>"};
XRedText = {"<t color='#f0ff0000'>" + _this + "</t>"};
XBlueText = {"<t color='#f07f7f00'>" + _this + "</t>"}; //olive
XPurpleText = {"<t color='#f05555ff'>" + _this + "</t>"}; //Blue purple
XGreenText = {"<t color='#f031723A'>" + _this + "</t>"}; //Forest Green
XLightGreenText = {"<t color='#f031E03A'>" + _this + "</t>"}; //Shiny Green